export function debounce(fn, delay) {
    let timer
    return function () {
        // 清除上一个计数器
        clearTimeout(timer)
        timer = setTimeout(() => {
            this[fn]()
        }, delay)
    }
}